package com.guangdujs.kis.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.guangdujs.common.annotation.Excel;
import com.guangdujs.common.core.domain.BaseEntity;

/**
 * 用户登录对象 t_User_Login
 * 
 * 
 * @date 2022-11-04
 */
public class TUserLogin extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户名 */
    @Excel(name = "用户名")
    private String fname;

    /** 最后登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date fdate;

    /** 登录时长 */
    @Excel(name = "登录时长")
    private Long flogintimes;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFname(String fname) 
    {
        this.fname = fname;
    }

    public String getFname() 
    {
        return fname;
    }
    public void setFdate(Date fdate) 
    {
        this.fdate = fdate;
    }

    public Date getFdate() 
    {
        return fdate;
    }
    public void setFlogintimes(Long flogintimes) 
    {
        this.flogintimes = flogintimes;
    }

    public Long getFlogintimes() 
    {
        return flogintimes;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fname", getFname())
            .append("fdate", getFdate())
            .append("flogintimes", getFlogintimes())
            .toString();
    }
}
